<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="com.is.control.AttendanceDetailControl"%>
<%@page import="com.is.util.ParamUtil"%>
<% 
	request.setCharacterEncoding("UTF-8");
	response.setCharacterEncoding("UTF-8");
	int value = ParamUtil.getInt(request,"value");
	System.out.println("dd" + value);
	int stuId = ParamUtil.getInt(request,"stuId");
	int timeId = ParamUtil.getInt(request,"timeId");
	if(AttendanceDetailControl.updateReasonTypeByIdAndTimeId(stuId,timeId,value)){
		System.out.println("dd");
		out.write("1");
	} else{
		out.write("0");
	}
%>